package com.atxiaodei.kabudashejimoshi.工厂模式.工厂方法模式;

/**
 * @ClassName Demo
 * @Deacription TODO
 * @Author 卡布达
 * @Date 2021/10/11 23:49
 * @Version 1.0
 **/
public class Demo {
    public static void main(String[] args) {
        ICourseFactory factory = new PythonCourseFactory();
        ICourse course = factory.create();
        course.record();
        factory = new JavaCourseFactory();
        course = factory.create();
        course.record();
    }
}
